<?php if ($this->list) { ?>
<?php foreach($this->list AS $key => $val) { ?>
<li>
	<div class="mod-head">
		<?php if ($val['unread'] > 0) { ?>
		<i class="icon-tips"></i>
		<?php } ?>
		<a href="m/people/<?php echo $val['url_token']; ?>"><img class="img" width="50" src="<?php echo get_avatar_url($val['uid'], 'mid'); ?>"></a>
		<a href="m/people/<?php echo $val['url_token']; ?>"><?php echo $val['user_name']; ?></a>
		<p class="color-999">
			<a href="m/inbox/dialog_id-<?php echo $val['id']; ?>"><?php echo nl2br($val['last_message']); ?></a>
		</p>
	</div>
	<div class="mod-footer active">
		<a href="m/inbox/dialog_id-<?php echo $val['id']; ?>"><?php echo $val['count']; ?><?php _e('条对话'); ?></a>
		<span class="pull-left"> • </span>
		<a href="javascript:;" onclick="if (confirm('<?php _e('确认删除对话'); ?>?')) { window.location = G_BASE_URL + '/inbox/delete_dialog/dialog_id-<?php echo $val['id']; ?>' }"><?php _e('删除'); ?></a>
		<span class="color-999 pull-right"><?php echo date_friendly($val['update_time']); ?></span>
	</div>
</li>
<?php } ?>
<?php } ?>